package com.demo.coretech.abstracts;

/**
 * @Authors：gaoyang
 * @CreateTime：2021/11/25 23:05
 * @Description：继承了抽象类person并实现全部抽象方法，这样Student就不在是抽象类了
 */
public class Student extends Person{

    private String major;

    public Student(String name, String major) {
        super(name);
        this.major = major;
    }

    @Override
    public String getDescription() {
        return "a student majoring in "+major;
    }
}
